package com.knowledge.web.controller;

import com.knowledge.model.pojo.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/home")
@Api(tags = "首页接口")
public class HomeController {

    @GetMapping("/index")
    @ApiOperation("index接口")
    public Result index(){
        return Result.success();
    }
}
